package com.qqtop10.manager.controller.autotask;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/*
import com.qqtop10.manager.model.OrderTags;
import com.qqtop10.manager.service.OrderTagsService;*/

@Component
public class CleanTagAutoTask {

	/*@Autowired()
	@Qualifier("orderTagsService")
	private OrderTagsService orderTagsService;

	@Scheduled(cron = "0 0 0 1/1 * ?")
	public void runTask() {
		// 查询已经到期的标签 ，并且删除 tb_order_tags
		List<OrderTags> list = orderTagsService.findExpirationTagList();
		if (list != null) {
			for (OrderTags tag : list) {
				orderTagsService.deletedExpirationTag(tag.getUid());
			}
		}
	}*/
}
